<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@	taglib	uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
	<title>个人中心</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link type="text/css" rel="stylesheet" href="css/header.css">
	<link type="text/css" rel="stylesheet" href="css/user_center.css">
	<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/simpleCart.min.js"></script>
</head>
<body>

<!-- 头部 -->
<jsp:include page="/header.jsp">
	<jsp:param value="4" name="flag"/>
</jsp:include>
	
	<!--account-->
	<div class="account">
    <div class="container">
        <div class="register">
            <c:if test="${!empty msg }">
                <div class="alert alert-success">${msg }</div>
            </c:if>
            <c:if test="${!empty failMsg }">
                <div class="alert alert-danger">${failMsg }</div>
            </c:if>

            <!-- Forms container -->
            <div class="forms-container">
                <!-- 收货信息 -->
                <div class="form-section">
                    <form action="${pageContext.request.contextPath }/user_changeaddress" method="post">
                        <h4>收货信息</h4>
                        <div class="input">
                            <span>收货人</span>
                            <input type="text" name="name" value="${user.name }" placeholder="请输入收货人">
                        </div>
                        <div class="input">
                            <span>收货电话</span>
                            <input type="text" name="phone" value="${user.phone }" placeholder="请输入收货电话">
                        </div>
                        <div class="input">
                            <span>收货地址</span>
                            <input type="text" name="address" value="${user.address }" placeholder="请输入收货地址">
                        </div>
                        <div class="register-but">
                            <input type="submit" value="提交">
                        </div>
                    </form>
                </div>
                <br><br><br>

                <!-- 安全信息 -->
                <div class="form-section">
                    <form action="${pageContext.request.contextPath }/user_changepwd" method="post">
                        <h4>安全信息</h4>
                        <br>
                        <div class="input">
                            <span>原密码</span>
                            <input type="text" name="password" placeholder="请输入原密码">
                        </div>
                        <br>
                        <div class="input">
                            <span>新密码</span>
                            <input type="text" name="newPassword" placeholder="请输入新密码">
                        </div>
                         <br>
                        <div class="register-but">
                            <input type="submit" value="提交">
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="register-but text-center">
    <h3 class="navbar-brand"><a href="${pageContext.request.contextPath }">返回首页</a></h3>
    <div class="clearfix"></div>
</div>
</div>

	<!--//account-->

	


<!-- 尾部 -->
<jsp:include page="/footer.jsp"></jsp:include>



	
</body>
</html>